x86: clear AC bit in RFLAGS to protect Xen itself by SMAP
authorFeng Wu <feng.wu@intel.com>
Mon, 12 May 2014 15:01:47 +0000 (17:01 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 12 May 2014 15:01:47 +0000 (17:01 +0200)
commit4ee0ad72d33a4c7ae9ccc26ce1b04dad399fabe8
tree5da4912c05c39ee357bf9f68fa54ad5cc545dc6a
parent94540285886cc984959da585f79652f8daf406fc
x86: clear AC bit in RFLAGS to protect Xen itself by SMAP

Clear AC bit in RFLAGS at the beginning of exception, interrupt, hypercall,
so Xen itself can be protected by SMAP mechanism. This patch also sets AC
bit at the beginning of double_fault and fatal_trap() to reduce the likelihood
of taking a further fault while trying to dump state.

Signed-off-by: Feng Wu <feng.wu@intel.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/acpi/suspend.c
xen/arch/x86/boot/x86_64.S
xen/arch/x86/traps.c
xen/arch/x86/x86_64/compat/entry.S
xen/arch/x86/x86_64/entry.S
xen/arch/x86/x86_64/traps.c
xen/include/asm-x86/asm_defns.h
xen/include/asm-x86/processor.h